package com.ciaojian.core.enums.business;

import com.ciaojian.core.enums.base.IBaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author Atlakyn
 */
@AllArgsConstructor
@Getter
public enum OrderOrderTypeEnum implements IBaseEnum {
    /**
     * 订单类型
     */
    NORMAL(1, "普通订单"),

    BUSINESS(2, "企业订单"),

    COUPON_PACKAGE(3, "次卡订单"),

    DOUYIN_WRITE_OFF(4, "抖音审核"),

    COUPON(5, "膨胀券订单"),

    MEMBER(6, "会员订单"),

    MEITUAN(9, "美团订单"),

    MEMBER_DETAIL(11, "权益订单"),

    CHARGE(14, "卡金充值"),

    JFCARD(15, "积分商城订单"),
    ;

    private Integer value;

    private String description;


    public static OrderOrderTypeEnum getSexEnumByCode(Integer code) {
        for (OrderOrderTypeEnum sexEnum : OrderOrderTypeEnum.values()) {
            if (code.equals(sexEnum.getValue())) {
                return sexEnum;
            }
        }
        return null;
    }
}
